﻿using System;
using System.Data;
namespace OnlineManagement.IDAL
{
	/// <summary>
	/// 接口层Piglets
	/// </summary>
	public interface IPiglets
	{
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int PigletID);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(OnlineManagement.Model.Piglets model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int PigletID);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        OnlineManagement.Model.Piglets GetModel(int PigletID,Guid sowID);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        #endregion  成员方法
        #region  MethodEx
        /// <summary>
        /// run procedure to get piglets by hoggeryid
        /// </summary>
        /// <param name="hoggeryId"></param>
        /// <returns></returns>
        DataSet GetPigletsByHoggeryID(int hoggeryId, int pageIndex, int pageSize);
        #endregion  MethodEx
	} 
}
